/*
 * @Description: * 用户信息
 * @Date: 2021-01-06 21:26:20
 * @LastEditTime: 2021-01-06 21:47:45
 * @Author: Ji YingHao
 * @FilePath: /nuxt-app/store/user.js
 */


export const state = () => ({
    userData: {
        name: 'jiyinghao'
    }
})

export const mutations = {
    updateUserData(state, value) {
        state.userData = value
    }
}

/*
this.$store.state.user.userData.name;
this.$store.commit("user/updateUserData", {name: 'kkkkooo'});
*/